This resolves #1379.
None => {}
}
if !manifest.targets().iter().any(|t| !t.is_custom_build()) {
- return Err(human(format!("either a [lib] or [[bin]] section must \
- be present")))
+ return Err(human(format!("either a [lib] (lib.rs) or [[bin]] (main.rs) section must \
+ be present in src")))
}
return Ok((manifest, paths));
failed to parse manifest at `[..]Cargo.toml`
Caused by:
- either a [lib] or [[bin]] section must be present\n"));
+ either a [lib] (lib.rs) or [[bin]] (main.rs) section must be present in src\n"));
});
test!(lto_build {
failed to parse manifest at `[..]`
Caused by:
- either a [lib] or [[bin]] section must be present"));
+ either a [lib] (lib.rs) or [[bin]] (main.rs) section must be present in src"));
});
test!(shared_dep_with_a_build_script {